<%--
  Created by IntelliJ IDEA.
  User: owner
  Date: 2018-08-05
  Time: 16:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@include file="../../include/back/BackHeader.jsp"%>
<%@include file="../../include/back/BackNavigator.jsp"%>
<title>产品管理</title>
<div class="Back_PropertyValuelist">
    <ol class="breadcrumb">
        <li><a href="admin_category_list">所有分类</a></li>
        <li><a href="admin_product_list?cid=${product.category.id}">${product.category.name}</a></li>
        <li class="active">${product.name}</li>
        <li class="active">编辑图片</li>
    </ol>
    <div class="propertyValuelist">
        <table>
            <tbody>
                <c:forEach items="${values}" var="val" varStatus="st">
                    <c:if test="${st.index%2 ne 0}"><tr></c:if>
                        <td>
                                <span>${val.property.name}</span>
                        </td>
                        <td>
                            <input type="hidden" value="${val.property.id}" class="ptid">
                            <input type="hidden" value="${val.product.id}" class="pid">
                            <%--<input type="hidden" value="${val.id}" class="id">--%>
                            <input type="text" value="${val.value}" class="property_value">
                        </td>
                <c:if test="${st.index%2 eq 0}"></tr></c:if>
                </c:forEach>
            </tbody>
        </table>
    </div>
</div>
<%@include file="../../include/back/BackFooter.jsp"%>
